home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / compress / arc.zoo / arc.h < prev    next >
C/C++ Source or Header  |  1989-01-29  |  3KB  |  111 lines

  1. /*
  2.  * $Header: arc.h,v 1.10 88/08/01 14:28:29 hyc Exp $
  3.  */
  4.  
  5. #undef    DOS    /* Just in case... */
  6. #undef    UNIX
  7.  
  8. /*
  9.  * Assumptions:
  10.  * char = 8 bits
  11.  * short = 16 bits
  12.  * long = 32 bits
  13.  * int >= 16 bits
  14.  */
  15.  
  16. #if    MSDOS || GEMDOS
  17. #define    DOS    1
  18. #define    CUTOFF    '\\'
  19. #define    OPEN_R    "rb"
  20. #define    OPEN_W    "wb"
  21. #endif
  22.  
  23. #if    !MSDOS
  24. #define    envfind    getenv
  25. #define    setmem(a, b, c)    memset(a, c, b)
  26. #endif
  27.  
  28. #if    BSD || SYSV
  29. #define    UNIX    1
  30. #define    CUTOFF    '/'
  31. #define    OPEN_R    "r"
  32. #define    OPEN_W    "w"
  33. #include <ctype.h>
  34. #endif
  35.  
  36. #if    MTS
  37. #define    CUTOFF    sepchr[0]
  38. #endif
  39.  
  40. #if    MTS || SYSV
  41. #define    rindex    strrchr
  42. #define    index    strchr
  43. #endif
  44.  
  45. #ifdef __STDC__
  46. #define abort __myabort
  47. #define sizeof    (int)sizeof
  48. #endif
  49.  
  50. /*  ARC - Archive utility - ARC Header
  51.   
  52.     Version 2.17, created on 04/22/87 at 13:09:43
  53.   
  54. (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  55.   
  56.     By:     Thom Henderson
  57.   
  58.     Description: 
  59.      This is the header file for the ARC archive utility.  It defines
  60.      global parameters and the references to the external data.
  61.   
  62.   
  63.     Language:
  64.      Computer Innovations Optimizing C86
  65. */
  66.  
  67. #define ARCMARK 26        /* special archive marker        */
  68. #define ARCVER 9        /* archive header version code   */
  69. #define STRLEN 100        /* system standard string length */
  70. #define FNLEN 13        /* file name length              */
  71. #define MAXARG 400        /* maximum number of arguments   */
  72.  
  73. #ifndef DONT_DEFINE        /* Defined by arcdata.c */
  74. #include "arcs.h"
  75.  
  76. extern int      keepbak;    /* true if saving the old archive */
  77. #if    !DOS
  78. extern int      image;        /* true to suppress CRLF/LF x-late */
  79. #endif
  80. #if    MTS
  81. extern char     sepchr[2];    /* Shared file separator, default = ':' */
  82. extern char     tmpchr[2];    /* Temporary file prefix, default = '-' */
  83. #endif
  84. #if    GEMDOS
  85. extern int      hold;        /* hold screen before exiting */
  86. #endif
  87. extern int      warn;        /* true to print warnings */
  88. extern int      note;        /* true to print comments */
  89. extern int      bose;        /* true to be verbose */
  90. extern int      nocomp;        /* true to suppress compression */
  91. extern int      overlay;    /* true to overlay on extract */
  92. extern int      kludge;        /* kludge flag */
  93. extern char    *arctemp;    /* arc temp file prefix */
  94. extern char    *password;    /* encryption password pointer */
  95. extern int      nerrs;        /* number of errors encountered */
  96. extern int      changing;    /* true if archive being modified */
  97.  
  98. extern char     hdrver;        /* header version */
  99.  
  100. extern FILE    *arc;        /* the old archive */
  101. extern FILE    *new;        /* the new archive */
  102. extern char     arcname[STRLEN];/* storage for archive name */
  103. extern char     bakname[STRLEN];/* storage for backup copy name */
  104. extern char     newname[STRLEN];/* storage for new archive name */
  105. extern unsigned short arcdate;    /* archive date stamp */
  106. extern unsigned short arctime;    /* archive time stamp */
  107. extern unsigned short olddate;    /* old archive date stamp */
  108. extern unsigned short oldtime;    /* old archive time stamp */
  109. extern int      dosquash;    /* squash instead of crunch */
  110. #endif                /* DONT_DEFINE */
  111.